package com.example.helloworld;

public class TestMax {
    public static void main(String[] args) {
        double a = 5.4;
        double b = 10;
        double k = max(a, b);
        System.out.println("The maximum of " + a + " and " + b + " is " + k);
    }

    public static int max(int a, int b) {
        if (a > b) {
            return a;
        } else {
            return b;
        }
    }

    public static double max(double a, double b) {
        if (a > b) {
            return a;
        } else {
            return b;
        }
    }
}
